Page Index Toggle Pages: 1 2 3 [4]  Send TopicPrint
Very Hot Topic (More than 25 Replies) Timeout waiting for output from CGI script (Read 28175 times)
pyragony54
God Member
*****
Offline


I Love YaBB!

Posts: 664
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Re: Timeout waiting for output from CGI script
Reply #9 - Feb 23rd, 2015 at 6:48pm
Print Post  
Monni wrote on Feb 23rd, 2015 at 6:40pm:
You should look for HTTP status 500 in Apache's access log... It should tell what YaBB was doing when the CGI timeout happened.


See by equal times.
  

Bad manners keep people but the only reason for a kind of privilege, because no skin them on the mouth.
Back to top
 
IP Logged
 
pyragony54
God Member
*****
Offline


I Love YaBB!

Posts: 664
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Re: Timeout waiting for output from CGI script
Reply #8 - Feb 23rd, 2015 at 6:43pm
Print Post  
Code incorporated. Let's see what it brings.
  

Bad manners keep people but the only reason for a kind of privilege, because no skin them on the mouth.
Back to top
 
IP Logged
 
Monni
Senior Member
****
Offline


Min izāmō

Posts: 413
Location: Kaarina, Finland
Joined: Jul 16th, 2014
Gender: Male
Re: Timeout waiting for output from CGI script
Reply #7 - Feb 23rd, 2015 at 6:40pm
Print Post  
You should look for HTTP status 500 in Apache's access log... It should tell what YaBB was doing when the CGI timeout happened.
  
Back to top
IP Logged
 
pyragony54
God Member
*****
Offline


I Love YaBB!

Posts: 664
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Re: Timeout waiting for output from CGI script
Reply #6 - Feb 23rd, 2015 at 6:33pm
Print Post  
You've got access to my forum and admin rights. Why do not you ask after, you may find an incorrect setting.

anti-scam.de
  

Bad manners keep people but the only reason for a kind of privilege, because no skin them on the mouth.
Back to top
 
IP Logged
 
pyragony54
God Member
*****
Offline


I Love YaBB!

Posts: 664
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Re: Timeout waiting for output from CGI script
Reply #5 - Feb 23rd, 2015 at 6:28pm
Print Post  
I never claimed. I just know that this is not occurred at YaBB 2.4.
Also possible that they were not available at the Apache version 1.
I do not know when Apache 2 has been deployed. I had someone who cared for the server, and I have never cared about these things then.
Whether all started at YaBB 2.5 AE or 2.5.2, I just do not know.
  

Bad manners keep people but the only reason for a kind of privilege, because no skin them on the mouth.
Back to top
 
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Timeout waiting for output from CGI script
Reply #4 - Feb 23rd, 2015 at 6:18pm
Print Post  
pyragony54 wrote on Feb 23rd, 2015 at 5:44pm:
PS: This error message is discussed in many forums, but I have not found a solution.


So this is not exclusively a YaBB issue?
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Timeout waiting for output from CGI script
Reply #3 - Feb 23rd, 2015 at 6:16pm
Print Post  
A couple of suggestions - if you haven't already done it, have your host turn on hotlink protection on both your sites. That will block attempts to grab images - including the non-existent capcha images - from your site. It will should also remove some of the bandwidth strain.

If you haven't already installed 'advanced errorlog security' you might want to.
BUT for it to work well with Guardian, these changes need to be made to Admin/Guardian.pm:
Code (Perl)
Select All
<search for>
                <script type="text/javascript">
            var old_htaccess = '';
            function remove_htaccess() {
                if (document.getElementById("use_htaccess").checked) {
                    old_htaccess = document.getElementById("access_denied").value;
                    document.getElementById("access_denied").value = '';
                    document.getElementById("access_denied").disabled = "disabled";
                } else {
                    document.getElementById("access_denied").value = old_htaccess;
                    document.getElementById("access_denied").disabled = "";
                }
            }
                </script>
</search for>

<replace>
##Code removed##
</replace>

<search for>
                    <textarea cols="40" rows="8" name="access_denied" id="access_denied" style="width:98%"~
      . ( $use_htaccess ? q{} : ' disabled="disabled"' )
      . qq~>$acc_denied</textarea>
</search for>

<replace>
                    <textarea cols="40" rows="8" name="access_denied" id="access_denied" style="width:98%">$acc_denied</textarea>
</replace>

<search for>
    if ( $use_guardian && $use_htaccess ) {
        require Sources::Guardian;
</search for>

<replace>
    if ( $use_guardian && $use_htaccess ) {
</replace> 



This will fix a conflict between Guardian and the other 'add-to-htaccess' functions. 



  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
pyragony54
God Member
*****
Offline


I Love YaBB!

Posts: 664
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Re: Timeout waiting for output from CGI script
Reply #2 - Feb 23rd, 2015 at 5:44pm
Print Post  
I do not know if it YaBB 2.5 AE for has already occurred. In 2.4 I think, because it was not. The error log from the forum is nothing useful, only in the error log from server, and also coincides exactly with the time.
Security settings are set very sharp in the Forum with me.

Edited:
PS: This error message is discussed in many forums, but I have not found a solution.
  

Bad manners keep people but the only reason for a kind of privilege, because no skin them on the mouth.
Back to top
 
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Timeout waiting for output from CGI script
Reply #1 - Feb 23rd, 2015 at 5:36pm
Print Post  
This was happening in YaBB 2.5AE?

I think we'll need to refer this to JonB as I think YaBBForum may have a similar issue with bots. ( I don't know this for a fact.) The problem is, we don't know exactly what the bots are calling that is initiating the stack overflow. It could be calls to almost anything they're not allowed to access - viewprofiles, PMs, guest posting if that's turned off, non-existent Catpcha graphics ... 

And since it's timing out, I doubt the info is being written to YaBB's error log.


  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
pyragony54
God Member
*****
Offline


I Love YaBB!

Posts: 664
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Timeout waiting for output from CGI script
Feb 23rd, 2015 at 5:21pm
Print Post  
Hello,
Some time ago I reported before about high CPU load on the server. At the time, I believe, the print function was to blame. Unfortunately, I have never looked at the Apache error log. Are some days, however, I found that the following entry in the log drives the CPU usage in height.

Quote:
[Mon Feb 23 16:28:46 2015] [warn] [client 66.249.79.97] Timeout waiting for output from CGI script /var/www/vhosts/anti-scam.de/cgi-bin/yabb2/YaBB.pl


Just now I know not, but has started all until YaBB 2.5 or YaBB 2.5.2
The whole then ends in an infinite loop (stack overflow). It only helps a restart of Apache. 
The error is produced exclusively by search engines. Does anyone have a plan of what to do about it? I want my server operators not yet informed, because I get back the threat of termination by pointing out the software was to blame in this state.
It just is not fun to have around 10 times a day restart Apache and night monitoring the no and it is particularly bad. I can therefore also BoardMod page not operate, then it gets worse.
The Forum will thus painfully slow.
  

Bad manners keep people but the only reason for a kind of privilege, because no skin them on the mouth.
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 2 3 [4] 
Send TopicPrint